{template 'common/header'}
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('exchange')}">商品兑换记录</a></li>
	<li class="active"><a href="{php echo $this->createWebUrl('win_exchange')}">奖品兑换记录</a></li>
	<li><a href="{php echo $this->createWebUrl('coin_exchange')}">步数兑换记录</a></li>
    <li><a href="{php echo $this->createWebUrl('xuni')}">虚拟兑换记录</a></li>
    <li><a href="{php echo $this->createWebUrl('xuni_post')}">添加虚拟兑换记录</a></li>
</ul>
<div class="panel panel-default">
        <div class="panel-heading">筛选</div>
        <div class="panel-body">
            <form action="" method="post" class="form-horizontal" role="form" id="form">
               <div class="form-group">
                    <div class="col-md-4 mathyts" >
                       <select  name="order_status" class="form-control form-control_s" >                        
                           <option value="1" {if $order_status==1}selected{/if}>UID</option>
                           <option value="2" {if $order_status==2}selected{/if}>兑换人</option>
                           <option value="3" {if $order_status==3}selected{/if}>手机号</option>
                       </select>
                    </div>
                    <div class="col-md-5">
                        <input type="text" class="form-control" name="keyword" id="keyword" value="{$keyword}">
                    </div>
                    <div class="pull-right col-md-2">
                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
                        <a href="{php echo $this->createWebUrl('exportDayInner2')}" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="" data-original-title="导出excel"><i class="fa fa-send"></i>导出excel</a>
                    </div>
                </div>
            </form>
        </div>
</div>
<div class="panel panel-default">
    <div class="panel-body">
       <form action="" method="post" class="form-horizontal form">
       <div class="alert alert-info url_div hide" role="alert">
       </div>
            <input type="hidden" name="storeid" value="">
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th>id</th>
                        <th>uid</th>
                        <th>昵称</th>
                        <th>兑换人</th>
                        <th>头像</th>
                        <th>省</th>
                        <th>市</th>
                        <th>区</th>
                        <th>详细地址</th>
                        <th>邮编</th>
                        <th>联系方式</th>
                        <th>商品名</th>
                        <th>兑换时间</th>
                        <th>状态</th>
                        <th style="text-align:right;">操作</th>
                    </tr>
                    </thead>
                    <tbody id="level-list">
                    {loop $list $item}
                    <tr>
                         <td><div class="type-parent">{$item['id']}</div></td>
                         <td><div class="type-parent"><a href="{php echo $this->createWebUrl('users', array('keyword' => $item['user_id'],'order_status' => 2))}">{$item['user_id']}</a></div></td>
                         <td><div class="type-parent">{$item['nick_name']}</div></td>
                         <td><div class="type-parent">{$item['userName']}</div></td>
                         <td><div class="type-parent"><img src="{php echo tomedia($item['head_pic']);}" width="50" height="50" /></div></td>
                         <td><div class="type-parent">{$item['provinceName']}</div></td>
                         <td><div class="type-parent">{$item['cityName']}</div></td>
                         <td><div class="type-parent">{$item['countyName']}</div></td>
                         <td><div class="type-parent">{$item['detailInfo']}</div></td>
                         <td><div class="type-parent">{$item['nationalCode']}</div></td>
                         <td><div class="type-parent">{$item['telNumber']}</div></td>
                         <td><div class="type-parent">{$item['goods_name']}</div></td>
                         <td><div class="type-parent">{$item['time']}</div></td>
                         <td>
                         {if $item['status'] == 1}
                            <span class="label label-success">已发货</span>
                            {else}
                            <span class="label label-default">待发货</span>
                         {/if}
                         </td>
                         <td style="text-align:right;">
                             <a class="btn btn-primary btn-sm" href="{php echo $this->createWebUrl('fahuo', array('op' => 'jiangpin', 'id' => $item['id']))}">发货</a>
                         </td>
                    </tr>
                    {/loop}
                    {if empty($list) }
	                <tr ng-if="!wechats">
	                <td colspan="15" class="text-center">暂无数据</td>
	                </tr>
	                {/if}
                    <tr>
                    <td colspan="15" style="text-align:right">{$page}</td>
                    </tr>     
                    </tbody>
                </table>  
            </div>
        </form>
    </div>
</div>
<style type="text/css">
    .hide{display: none}
</style>

{template 'common/footer'}